-- GENERATED SPELL FOR [Cavalier Durgen] --


function spell0_11611(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(13005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11611', 6296, 1)
end

function spell1_11611(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(13953,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11611', 595, 1)
end

function spell2_11611(pUnit, Event) --@Retribution Aura,Self--
pUnit:FullCastSpellOnTarget(13008,pUnit)
pUnit:RegisterEvent('Sorts_11611', 532, 1)
end

function Sorts_11611(pUnit, Event)
local choix_sorts_11611 = math.random(0, 2)
if choix_sorts_11611 == 0 then
pUnit:RegisterEvent('spell0_11611', 1, 1)
end
if choix_sorts_11611 == 1 then
pUnit:RegisterEvent('spell1_11611', 1, 1)
end
if choix_sorts_11611 == 2 then
pUnit:RegisterEvent('spell2_11611', 1, 1)
end
end

function mob11611_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11611', math.random(1500, 3000), 1)
end

function mob11611_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11611_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11611_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11611, 1, 'mob11611_Action')
RegisterUnitEvent(11611, 2, 'mob11611_Leave')
RegisterUnitEvent(11611, 3, 'mob11611_Kill')
RegisterUnitEvent(11611, 4, 'mob11611_Die')
